.blog-page {
  padding-bottom: 80px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-filters {
  margin-bottom: 40px;
}

.search-bar {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tag-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  margin-bottom: 10px;
}

.blog-date {
  color: var(--light-text-color);
  font-size: 0.9rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.blog-title a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--primary-color);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.blog-tag {
  padding: 4px 10px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.blog-tag:hover {
  background-color: rgba(37, 99, 235, 0.2);
}

.blog-excerpt {
  color: var(--light-text-color);
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 0;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.no-results p {
  color: var(--light-text-color);
  margin-bottom: 20px;
}

.reset-btn {
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .blog-page {
    padding-bottom: 60px;
  }
  
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .blog-image-container {
    height: 180px;
  }
}
